
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import { componentPlugin } from '@/components/index.js'

import piniaPersist from 'pinia-plugin-persistedstate'

// 引入初始化项目文件
import '@/styles/common.scss'

import { lazyPlugin } from '@/directive/index'

const app = createApp(App)
const pinia = createPinia()

pinia.use(piniaPersist)
app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)

app.mount('#app')